{extend name="public/base"}

{block name="title"}
店铺搜索
{/block}

{block name="style"}
{css href="/static/wechat/css/managementshop.css" /}
{/block}

{block name="body"}
<div class="pageControl orderDetails">
    <div class="msui_nav msui_navTop" style="border-bottom: 1px solid #cccccc;align-items: center;">
        <div class="form_div">
            <form class="u-seh-fm" action="?" method="get">
                <label class="bging"></label>
                <input class="fs07" type="text" name="keyword" value="" placeholder="请输入店铺名称" />
            </form>
            <a href="javascript:" class="u_qxa search">搜索</a>
        </div>
    </div>

    <!--退款列表-->
    <ul class="g-ul-dplb mar_top havebortop">
        {empty name="data"}
        <li style=" margin: 2rem 0; text-align: center;">没有搜索到相关内容</li>
        {else /}
        {volist name="data" id="vo"}
        {eq name="type" value="1"}
        <a href="{:url('repair_info', ['id' => $vo['id']])}">
        {else /}
        <a href="{:url('dealer_info', ['id' => $vo['id']])}">
        {/eq}
            <li class="li-dplb">
                <div class="shopheaddiv dplb-div">
                    {empty name="vo.logo"}
                    <i class="bging shophead1" style="background-image: url('/static/wechat/images/1.jpg');"></i>
                    {else /}
                    <i class="bging shophead1" style="background-image: url('{$vo.logo|get_img_url}');"></i>
                    {/empty}
                </div>
                <div class="shopmsg">
                    {eq name="type" value="1"}
                    <h1 class="fs09">{$vo.repair_name}</h1>
                    {else /}
                    <h1 class="fs09">{$vo.dealer_name}</h1>
                    {/eq}
                    <p class="fs06 cl-6666">店主: {$vo.proposer}</p>
                    <span class="fs06 cl-9999">申请时间:</span><span class="fs06 cl-9999 data">{$vo.apply_time|date="Y-m-d", ###}</span>&nbsp;&nbsp;<span class="fs06 cl-9999">{$vo.apply_time|date="H:i", ###}</span>
                </div>
            </li>
        </a>
        {/volist}
        {/empty}
    </ul>
</div>
<!-- loading toast -->
<div id="loadingToast" style="display:none;">
    <div class="weui-mask_transparent"></div>
    <div class="weui-toast" style="opacity: 1; visibility: visible;">
        <i class="weui-loading weui-icon_toast"></i>
        <p class="weui-toast__content">加载中...</p>
    </div>
</div>
{/block}
{block name="javascript"}
<script src="/static/wechat/js/managementshop.js?v={php}echo time(){/php}"></script>
<script>
    $(function () {
        $(".search").click(function () {
            var keyword = $('input[name="keyword"]').val();
            if (!keyword) {
                alert("请输入搜索内容");
                return false;
            }
            $(".u-seh-fm").submit();
        });
    });
</script>
{/block}